//
//  SXPBaseTableViewController.m
//  oc_weibo
//
//  Created by shixinPeng on 16/3/6.
//  Copyright © 2016年 shixinPeng. All rights reserved.
//

#import "SXPBaseTableViewController.h"
#import "SXPlogView.h"

@interface SXPBaseTableViewController ()

@property(nonatomic,weak)SXPlogView *logView;

@end

@implementation SXPBaseTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setUpvisiter];
}
//加载web哦页面
-(void)setUpvisiter{
    //初始化
    SXPlogView *logView = [[SXPlogView alloc]initWithFrame:self.view.bounds];
    
    //设置属性
    
    //添加到对应的界面中
    [self.view addSubview:logView];
    
    self.logView = logView;
    
    [self setNavItem];
}
//添加左右按钮
-(void)setNavItem{
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"注册" style:UIBarButtonItemStylePlain target:self action:@selector(joinIn)];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"登陆" style:UIBarButtonItemStylePlain target:self action:@selector(logIn)];
}
-(void)joinIn{
    SXLog(@"注册");
}
-(void)logIn{
    SXLog(@"登陆");
}
@end
